package com.cy.ppj.model.ao.user;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.cy.ppj.comm.constant.RegexContants;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 渠道公司新增（关联）成员（经纪人）字段
 * @author: tanyilin
 * @create: 2018年8月9日 上午10:56:31
 */
@Data
@ApiModel("渠道公司新增（关联）成员（经纪人）字段")
public class CompanyMemberAddAO {

	@ApiModelProperty(value = "手机号码")
	@Pattern(regexp = RegexContants.MOBILE, message = "手机号码格式不正确")
	private String mobile;
	
	@ApiModelProperty(value = "渠道公司名称")
	private String companyName;
	
	@ApiModelProperty(value = "渠道公司ID", example = "0", required = true)
	@NotNull(message = "渠道公司ID不可为空")
	private Long companyId;
	
	@ApiModelProperty(value = "昵称")
	private String nickName;
}
